<%--
  Created by IntelliJ IDEA.
  User: Admin
  Date: 2021/7/25
  Time: 19:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  <script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
  <script type="text/javascript">
      $(function (){
        $("#uname").blur(function(){
          //1.获得value值
          var uname = $(this).val();
          //2.发送请求
          $.post("/testuname","username="+uname,function(rs){
            $("#rs").html(rs);
          });
        });
      })
  </script>
  </head>
  <body>
    <h1>验证用户名正确</h1>

    username:<input type="text" id="uname" ><span id="rs"></span>
  </body>
</html>
